﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200128D RID: 4749
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingDialogueSelectOptionCsReq : IMessage<SwordTrainingDialogueSelectOptionCsReq>, IMessage, IEquatable<SwordTrainingDialogueSelectOptionCsReq>, IDeepCloneable<SwordTrainingDialogueSelectOptionCsReq>, IBufferMessage
	{
		// Token: 0x17003C2C RID: 15404
		// (get) Token: 0x0600D4F3 RID: 54515 RVA: 0x0023D011 File Offset: 0x0023B211
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingDialogueSelectOptionCsReq> Parser
		{
			get
			{
				return SwordTrainingDialogueSelectOptionCsReq._parser;
			}
		}

		// Token: 0x17003C2D RID: 15405
		// (get) Token: 0x0600D4F4 RID: 54516 RVA: 0x0023D018 File Offset: 0x0023B218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingDialogueSelectOptionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C2E RID: 15406
		// (get) Token: 0x0600D4F5 RID: 54517 RVA: 0x0023D02A File Offset: 0x0023B22A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingDialogueSelectOptionCsReq.Descriptor;
			}
		}

		// Token: 0x0600D4F6 RID: 54518 RVA: 0x0023D031 File Offset: 0x0023B231
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingDialogueSelectOptionCsReq()
		{
		}

		// Token: 0x0600D4F7 RID: 54519 RVA: 0x0023D039 File Offset: 0x0023B239
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingDialogueSelectOptionCsReq(SwordTrainingDialogueSelectOptionCsReq other) : this()
		{
			this.optionId_ = other.optionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D4F8 RID: 54520 RVA: 0x0023D05E File Offset: 0x0023B25E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingDialogueSelectOptionCsReq Clone()
		{
			return new SwordTrainingDialogueSelectOptionCsReq(this);
		}

		// Token: 0x17003C2F RID: 15407
		// (get) Token: 0x0600D4F9 RID: 54521 RVA: 0x0023D066 File Offset: 0x0023B266
		// (set) Token: 0x0600D4FA RID: 54522 RVA: 0x0023D06E File Offset: 0x0023B26E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionId
		{
			get
			{
				return this.optionId_;
			}
			set
			{
				this.optionId_ = value;
			}
		}

		// Token: 0x0600D4FB RID: 54523 RVA: 0x0023D077 File Offset: 0x0023B277
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingDialogueSelectOptionCsReq);
		}

		// Token: 0x0600D4FC RID: 54524 RVA: 0x0023D085 File Offset: 0x0023B285
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingDialogueSelectOptionCsReq other)
		{
			return other != null && (other == this || (this.OptionId == other.OptionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D4FD RID: 54525 RVA: 0x0023D0B4 File Offset: 0x0023B2B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.OptionId != 0U)
			{
				num ^= this.OptionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D4FE RID: 54526 RVA: 0x0023D0F3 File Offset: 0x0023B2F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D4FF RID: 54527 RVA: 0x0023D0FB File Offset: 0x0023B2FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D500 RID: 54528 RVA: 0x0023D104 File Offset: 0x0023B304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.OptionId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.OptionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D501 RID: 54529 RVA: 0x0023D138 File Offset: 0x0023B338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.OptionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D502 RID: 54530 RVA: 0x0023D176 File Offset: 0x0023B376
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingDialogueSelectOptionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.OptionId != 0U)
			{
				this.OptionId = other.OptionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D503 RID: 54531 RVA: 0x0023D1A7 File Offset: 0x0023B3A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D504 RID: 54532 RVA: 0x0023D1B0 File Offset: 0x0023B3B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.OptionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005530 RID: 21808
		private static readonly MessageParser<SwordTrainingDialogueSelectOptionCsReq> _parser = new MessageParser<SwordTrainingDialogueSelectOptionCsReq>(() => new SwordTrainingDialogueSelectOptionCsReq());

		// Token: 0x04005531 RID: 21809
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005532 RID: 21810
		public const int OptionIdFieldNumber = 14;

		// Token: 0x04005533 RID: 21811
		private uint optionId_;
	}
}
